Skip to main content

Android Background Audio

Type

library

Summary

This library provides an API for playing background audio on Android

Description

Use this library to start and control a background audio service that will continue playing when the current application is suspended.

Compatibility and Support

OS

android

Children Properties

Message

NameSummarySyntax
audioFinishedPlayingInBackgroundSent when the audio has finished playingaudioFinishedPlayingInBackground

Handler

NameSummarySyntax
androidStartAudioPlayingInBackgroundStart playing audio in the background.androidStartAudioPlayingInBackground(<pAudio>)
androidIsAudioPlayingInBackgroundWhether there is currently any audio playing in the backgroundandroidIsAudioPlayingInBackground()
androidGetDurationOfAudioPlayingInBackgroundGets the duration of the currently playing audio in milliseconds.androidGetDurationOfAudioPlayingInBackground()
androidPauseAudioPlayingInBackgroundPause the currently playing background audioandroidPauseAudioPlayingInBackground()
androidGetCurrentTimeOfAudioPlayingInBackgroundGets the current time of the playing audio in milliseconds. If no audio is playing in the background, then 0 is returned.androidGetCurrentTimeOfAudioPlayingInBackground()
androidSetCurrentTimeOfAudioPlayingInBackgroundSets the current time of the playing audio in milliseconds. This command has no effect if there is no audio playing in the background.androidSetCurrentTimeOfAudioPlayingInBackground(<pMilliseconds>)
androidResumeAudioPlayingInBackgroundResume the currently paused background audioandroidResumeAudioPlayingInBackground()
androidStopAudioPlayingInBackgroundStop playing audio in the background.androidStopAudioPlayingInBackground()